package com.example.administrator.yunniuusedcar.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.administrator.common.base.BaseActivity;
import com.example.administrator.yunniuusedcar.R;
import com.example.administrator.yunniuusedcar.ui.GetJiFenActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**  豪车积分 首页
 * Created by Administrator on 2017/12/19.
 */

public class HaoCarJiFenActivity extends BaseActivity {
    @BindView(R.id.iv_back)
    ImageView ivBack;
    @BindView(R.id.tv_nowJifen)
    TextView tvNowJifen;
    @BindView(R.id.tv_NowMoney)
    TextView tvNowMoney;
    @BindView(R.id.tv_YuEmoeny)
    TextView tvYuEmoeny;
    @BindView(R.id.tv_JiFenYuET)
    TextView tvJiFenYuET;
    @BindView(R.id.tv_GetJifenT)
    TextView tvGetJifenT;
    @BindView(R.id.RL_jifen)
    RelativeLayout RLJifen;
    @BindView(R.id.iv_Erro_jifen)
    ImageView ivErroJifen;
    @BindView(R.id.tv_JifenMonseT)
    TextView tvJifenMonseT;
    @BindView(R.id.HaoCarShoopPage)
    ImageView HaoCarShoopPage;
    @BindView(R.id.tv_HaoCarShoopName)
    TextView tvHaoCarShoopName;
    @BindView(R.id.tv_HaoCarJifenMoney)
    TextView tvHaoCarJifenMoney;
    @BindView(R.id.LLLT)

    LinearLayout LLLT;
    @BindView(R.id.iv_errorpg1)
    ImageView ivErrorpg1;
    @BindView(R.id.RL_HaoCarWhatJifenT)
    RelativeLayout RLHaoCarWhatJifenT;
    @BindView(R.id.iv_errorpg2)
    ImageView ivErrorpg2;
    @BindView(R.id.RL_HaoCarJifenQYT)
    RelativeLayout RLHaoCarJifenQYT;
    @BindView(R.id.iv_errorpg3)
    ImageView ivErrorpg3;
    @BindView(R.id.RL_HaoCarPingTaiT)
    RelativeLayout RLHaoCarPingTaiT;

    @Override
    public int getLayoutRes() {
        return R.layout.activity_hao_car_jifen;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R.id.tv_JiFenYuET, R.id.tv_GetJifenT, R.id.tv_JifenMonseT, R.id.LLLT, R.id.RL_HaoCarWhatJifenT, R.id.RL_HaoCarJifenQYT, R.id.RL_HaoCarPingTaiT})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_JiFenYuET:
                break;
            case R.id.tv_GetJifenT:   // 如何获取积分
            startActivity(new Intent(HaoCarJiFenActivity.this,GetJiFenActivity.class));
                break;
            case R.id.tv_JifenMonseT:
                startActivity(new Intent(HaoCarJiFenActivity.this,HaoCarJifenShopActivity.class));
//                getSupportFragmentManager().beginTransaction()
//                        .replace(R.id.tv_JifenMonseT, new NewFragment())
//                        .addToBackStack(null)
//                    .commit();
                break;
            case R.id.LLLT:
                break;
            case R.id.RL_HaoCarWhatJifenT:
                break;
            case R.id.RL_HaoCarJifenQYT:
                break;
            case R.id.RL_HaoCarPingTaiT:
                break;
        }
    }
}
